<?php
class Admin_Form_AddSupport extends Apps_Form {
	public function init() {
		$supportType = new Zend_Form_Element_Select(
				'type',
				array('label' 			=> 'Support type',
					  'required'		=> true,
					  'multiOptions'	=> array(
											Model_DbTable_Support::TYPE_YAHOO => 'Yahoo',
											Model_DbTable_Support::TYPE_SKYPE => 'Skype',
					  		)));

		$supporterName = new Zend_Form_Element_Text(
				'supporter_name',
				array('label' 		=> 'Suppoter',
					  'filter'		=> 'StringTrim',
					  'class'		=> 'span5',
					  'required'	=> true));

		$account = new Zend_Form_Element_Text(
				'account',
				array('label' 		=> 'Account',
					  'class'		=> 'span5',
					  'required'	=> true));

		$phone = new Zend_Form_Element_Text(
				'phone',
				array('label' 		=> 'Phone',
					  'class'		=> 'span5'));

		$sortingNumber  = new Zend_Form_Element_Text(
				'sorting_number',
				array('label' 		=> 'Sorting number',
					  'class'		=> 'span5'));

		$description = new Zend_Form_Element_Textarea(
				'description',
				array('label' => 'Description',
					  'rows'	=> 5,
					  'cols'	=> 80));

		$this->addElement($supportType)
			 ->addElement($supporterName)
			 ->addElement($account)
			 ->addElement($phone)
			 ->addElement($sortingNumber)
			 ->addElement($description);

		$this->setLegend('Add new');
		$this->addActionGroup()
			 ->makeup();
	}
}